package com.automannn.atm_back.modules.system.mapper;

import com.automannn.atm_back.modules.system.entity.SysAnnouncementSend;
import com.automannn.atm_back.modules.system.model.AnnouncementSendModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenkh
 * @time 2020/6/26 17:02
 */
public interface SysAnnouncementSendMapper extends BaseMapper<SysAnnouncementSend> {

     List<String> queryByUserId(@Param("userId") String userId);

    /**
     * @功能：获取我的消息
     * @param announcementSendModel
     * @return
     */
     List<AnnouncementSendModel> getMyAnnouncementSendList(Page<AnnouncementSendModel> page, @Param("announcementSendModel") AnnouncementSendModel announcementSendModel);

}
